﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommonModel.Field
{
	/**
	* 内部类, 用于记录指令码与数据之间的结构<br/>
	* 
	* @author likangfu
	*
	*/
	public class CodeField
	{
		private String code;
		private byte[] value;

		public CodeField()
		{

		}
        /*		public byte[] Value
                {
                    get => value;
                    set => this.value = value;
                }*/

        //public byte[] getValue()
        //{
        //    return value;
        //}

        //public void setValue(byte[] value)
        //{
        //    this.value = value;
        //}

        public Object getValue()
        {
            return value;
        }

        public void setValue(Object value)
        {
            this.value = (byte[])value;
        }

        /*		public string Code
                {
                    get => code;
                    set => code = value;
                }*/
        public String getCode()
        {
            return code;
        }

        public void setCode(String code)
        {
            this.code = code;
        }
    }
}
